import type { RadioProps as AntdRadioProps } from 'antd';
import { Radio as AntdRadio } from 'antd';
import React from 'react';
import Group from './Group';
import RadioButton from './RadioButton';

export type { Props as GroupProps } from './Group';
export type { Props as RadioButtonProps } from './RadioButton';
export { Group, RadioButton };
export type RadioProps = AntdRadioProps;

function Radio(props: RadioProps) {
  return <AntdRadio {...props} />;
}
Radio.Group = Group;
Radio.Button = RadioButton;
export default Radio;
